<?php
class Logdetail extends CActiveRecord {
	public static function model($className = __CLASS__) {
		parent::model ( $className );
	}
	public function tableName() {
		return '{{log_detail}}';
	}
	
	public function rules() {
		return array (
			
			array (
				
				"detailid,logid", 
				"required", 
				'message' => '不能为空' 
			), 
			array (
				
				'columnname,columntext,columndatetype,createtime,createuser', 
				'safe' 
			)
		);
	
	}
	//	public function relations() {
	//		return array (
	//		 
	//		
	//		);
	//	}
	public function attributeLabels() {
		return array (
			
			"detailid" => "detailid", 
			"logid" => "logid", 
			"columnname" => "columnname", 
			"columntext" => "columntext", 
			"createuser" => "createuser", 
			"createtime" => "createtime", 
			"columndatetype" => "columndatetype"
		);
	}

}
?>